home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1995 August / PC Plus Super CD (Issue 106) (PCP106) (August 1995).iso / pcplus / handson / helpscn / share61e / search.doc < prev    next >
Encoding:
Text File  |  1994-12-16  |  2.4 KB  |  58 lines

  1.             SEARCH and REPLACE using SEARCH LIST 
  2.     ==================================================================
  3.                 K. Th. Hell (C)
  4. In short:
  5.     SEARCH+REPLACE with SEARCH LIST is simple to use and very powerfull
  6.     but unfortunately needs a lot of TIME, so ran it during coffee break
  7.     and always use the hard disk (best with CACHE and sufficient MEMORY).
  8.     You may SEARCH for an almost UNLIMITED NUMBER of SEARCH STRINGS
  9.     (up to 40 characters each) SIMULTANEOUSLY - again and again!
  10.  
  11. FUNCTION:
  12.     SEARCH is carried out by looking for the first 40 characters
  13.     (line POSITION 1-40) on each line. 
  14.     Leading SPACES are considered, trailing SPACES only, if the END
  15.     of the SEARCH STRING is specially marked with an asigned CODE.
  16.     When searching for SPACES you should always choose the option
  17.     "SIMULATE missing SPACES" because at the beginning of a line there
  18.     might be NO leading SPACE, and also at the end of the line often
  19.     there are NO trailing SPACES!
  20.     Furthermore, <TAB> and CODE 255 might look like SPACES but are NOT!
  21.  
  22.     The REPLACEMENT STRING is on the same LINE starting at POSITION 41.
  23.     If the REPLACEMENT STRING is MISSING, then, the SEARCH STRING
  24.     will be DELETED when found!
  25.  
  26.     CODES 10, 13 and 26 can't be used in the SEARCH LIST.
  27.     Other CODES < 32 call for CAUTION!
  28.     LINES beginning with "REM " are disregarded.
  29.  
  30. IMPORTANT:
  31.     SEARCH+REPLACE with LIST can be carried out AUTOMATICALLY
  32.     at the COMMAND LINE or with a BATCH FILE:
  33.  
  34. SYNTAX:
  35.     ASCIIPRO.EXE SEARCH.LST SEARCH.TXT RESULT.ASC [CODE Y|N Y|N CONDITION]
  36.     
  37.     COMPULSARY PARAMETERS:    
  38. ASCIIPRO.EXE : PROGRAM NAME of <ASCII-PRO> (± DRIVE:\/PATH)
  39. SEARCH  .LST : FILE NAME of SEARCH LIST (± DRIVE:\PATH)
  40. SEARCH  .TXT : FILE NAME where to SEARCH (± DRIVE:\PATH)
  41. RESULT  .ASC : FILE NAME for RESULT of SEARCH (± DRIVE:\PATH)
  42.  
  43.     FACULTATIVE PARAMETERS:
  44. CODE         : CODE (1-255) used in SEARCH LIST as MARK for trailing SPACES
  45. J|N          : "Y" to distinguish between UPPER and lower case.
  46. J|N          : "Y"  for the option "SIMULATE missing SPACES".
  47. CONDITION    : TEXT or MARK which must be found in the PREVIOUS LINE
  48.                    in order to execute REPLACEMENT.     
  49.  
  50.     Separate the parameters with ONE space.
  51.     Maximum length of COMMANDO line ist 126 characters.
  52.     
  53.     To get to know the function, first execute it MENU DRIVEN!      
  54.  
  55.     For more details, please check the SAMPLE FILE "SEARCH.LST".
  56.  
  57. *******************************************************************************
  58.